﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ConfirmTicket : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
    {
        try
        {
            Convert.ToInt32(TextBox1.Text);
            args.IsValid = true;
        }
        catch (Exception)
        {
            args.IsValid = false;
        }
    }


    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            int id = Convert.ToInt32(TextBox1.Text);
            Response.Redirect("~/Users/ConfirmTicket.aspx?id=" + id);
        }
    }
}
